package com.zhss.springbootdemo01;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName TestController
 * @Description 测试项目
 * @Author leejiliang
 * @DateTime 2021/2/6 16:14
 * @Version 1.0
 */
@RestController
public class TestController {

	@Autowired
	public void printArgs(ApplicationArguments arguments) {
		System.out.println("打印参数");
		arguments.getNonOptionArgs().forEach(System.out::println);
	}

	@GetMapping("/hello-world")
	public String helloWorld1() {
		return "hello world12";
	}

	@GetMapping("/hello-world2")
	public String helloWorld3() {
		return "hello world13";
	}


}
